<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/icon.css" />

<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
$(function () {
	$('#cc').combobox({    
	    url:'selectUser', 
	     valueField:'id',    
	 	 textField:'text'
	}); 
	$('#cc1').combobox({    
	    url:'selectRole',    
	    valueField:'id',    
	    textField:'text'    	
	}); 
	


})
$("#updateRole").click(function () {
		var UserName=$("#cc").combo('getText');
		var UserRole=$("#cc1").combo('getText');
	})
</script>
<body>
<div >
<form id="updateRole" method="post">
用户名<input id="cc" name="dept" value="">  
角色<input id="cc1" name="dept1" value="">
<button  onclick="">确定</button> 
</form>
</div>
</body>
</html>